n = int(input())

ge = n%10
shi = n//10%10
bai = n//100%10
qian = n//1000%10
wan = n//10000

if ge == wan and shi == qian:
    print("是回文数")
else:
    print("不是回文数")